﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace il2lua
{
    public class SuntaxNode
    {
        private IList<SuntaxNode> _children;
        private SuntaxNode _parent;

        public SuntaxNode Parent => _parent;
        public IList<SuntaxNode> Children => _children;
    }
    public class BodySuntaxNode : SuntaxNode
    {

    }
    public class LocalSuntaxNode
    {
        private SuntaxNode _var;
        private SuntaxNode? _value;
        public SuntaxNode Parent => _var;
        public SuntaxNode Children => _value;
    }
    public class IfSuntaxNode : SuntaxNode
    {
        private SuntaxNode _condition;
        private SuntaxNode _then;
        private SuntaxNode _else;
        public SuntaxNode Condition => _condition;
        public SuntaxNode Then => _then;
        public SuntaxNode Else => _else;
    }

    public class WhileSuntaxNode : SuntaxNode
    {
        private SuntaxNode _condition;
        private SuntaxNode _then;
        public SuntaxNode Condition => _condition;
        public SuntaxNode Then => _then;
    }


    public class LuaSyntaxTree
    {

    }
}
